

#ifndef example15_1_GameObjHero_h
#define example15_1_GameObjHero_h
#include "cocos2d.h"
using namespace cocos2d;

class GameObjHero : public CCNode, public CCTargetedTouchDelegate
{
public:
  
	CCSprite* lefthand;
	CCSprite* righthand;
	CCPoint offset;
	CCSprite *mainsprite;
	//CCSprite *dog;
	bool iscontrol;
	GameObjHero(void);
	virtual ~GameObjHero(void);
	void releasebullet(float ft);
	CCRect rect();
	virtual void onEnter();
	virtual void onExit();
	bool containsTouchLocation(CCTouch* touch);
	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
	virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
	void changeHeroRole(CCObject* pSender);
	virtual void touchDelegateRetain();
	virtual void touchDelegateRelease();
	void updateHero(float ft);
};


#endif
